package edu.sctu.practice.class02.lvchang.test25;

/**
 * Created by Administrator on 2015/11/9.
 */
public class PurifiedWater extends Water implements Process {

    public PurifiedWater(int temperature) {
        super(temperature);
    }

    @Override
    public void buffer() {
        System.out.print("缓冲");
    }

    @Override
    public void filter() {
        System.out.print("—过滤");
    }

    @Override
    public void heat() {
        System.out.print("—加热");
    }

    @Override
    public void sugaring() {
        System.out.print("—加糖");
    }

    public void process() {

        System.out.println("水温：" + temperature);
        System.out.println("*******纯净水生产线*******");
        buffer();
        filter();
        heat();
        sugaring();
    }
}
